package day1108_4;

public class W5 {
    public static void main(String[] args) {
        for(int n=7 ; n<=1000;  n=n+7 ){
            System.out.println(n);
        }

        for( int m=1 ;m<=1000/7 ; m++){//142 * 7
            System.out.println(m*7);
        }
    }
}
